<script setup lang="ts">
import { provide, toRef } from "vue";

const props = defineProps<{
  disabled?: boolean;
}>();

provide("ByForm", {
  disabled: toRef(props, "disabled"),
});
</script>

<template>
  <form>
    <slot />
  </form>
</template>
